Title Banner

Previous Book Contents Book Index Next

Inside Macintosh: OpenDoc Class Reference /
Part 1 - Classes and Methods / ODFrame


ChangeFrameShape

The ChangeFrameShape method changes the frame shape of this frame.

void ChangeFrameShape (in ODShape shape, 
                       in ODCanvas biasCanvas);
shape
A reference to a frame shape to assign to this frame, expressed in frame coordinates.
biasCanvas
kODNULL if the geometry is in platform-normal coordinates, otherwise a reference to the canvas object to whose coordinate space the geometry is biased.
DISCUSSION
Your part calls its embedded frame's ChangeFrameShape method when it changes the shape of the embedded frame. This method in turn calls the FrameShapeChanged method of the embedded frame's part to notify the part that its frame shape has changed.

If the used shape is the same as the frame shape, this method also calls the UsedShapeChanged method of the embedded frame's part to notify the part that its used shape has changed.

EXCEPTIONS
kODErrIllegalNullShapeInput
The shape parameter is null.
SEE ALSO
The ODFrame::AcquireFrameShape method (page 302).
The ODFrame::RequestFrameShape method (page 331).
The ODPart::FrameShapeChanged method (page 520).
The ODPart::UsedShapeChanged method (page 550).
"Resizing an Embedded Frame" on page 120 in OpenDoc Programmer's Guide.
"Frame Shape" on page 145 in OpenDoc Programmer's Guide.
"Redrawing a Frame When It Changes" on page 161 in OpenDoc Programmer's Guide.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
17 JUL 1996




Navigation graphic, see text links

Main | Page One | What's New | Apple Computer, Inc. | Find It | Contact Us | Help